######################################################
# skt - generate ln config files for gdaq for ETF, IMP
#
# CMakeLists.txt for compilation of library skt
# Author SUN Yazhou
# Created: 2023/08/04
# Last modified: 2023/08/04
######################################################

cmake_minimum_required(VERSION 3.12)
project(online)

# set(CMAKE_CXX_COMPILER /home/asia/usr/g++) # set your own compiler
# set(CMAKE_C_COMPILER /home/asia/usr/gcc) # may not work - don't know why
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}")
set(CMAKE_BUILD_TYPE "Release")
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)

# copy the config files to the build directory
file(GLOB_RECURSE VAR ${PROJECT_SOURCE_DIR}/*.yaml)
file(COPY ${VAR} DESTINATION ${PROJECT_BINARY_DIR})

add_subdirectory(online)
add_subdirectory(src)
